﻿using Microsoft.AspNetCore.Mvc;

namespace ProcessMVC.Controllers
{
    public class BomController : Controller
    {
        private readonly ILogger<BomController> _logger;

        public BomController(ILogger<BomController> logger)
        {
            _logger = logger;
        }
        /// <summary>
        /// 物品新增
        /// </summary>
        /// <returns></returns>
        public IActionResult GoodsAdds()
        {
            return View();
        }
        /// <summary>
        /// 物品列表
        /// </summary>
        /// <returns></returns>
        public IActionResult GoodsLists()
        {
            return View();
        }
        /// <summary>
        /// 物品编辑
        /// </summary>
        /// <returns></returns>
        public IActionResult GoodsEdit()
        {
            return View();
        }
        /// <summary>
        /// Bom新增
        /// </summary>
        /// <returns></returns>
        public IActionResult BomAdd()
        {
            return View();
        }
        /// <summary>
        /// BOM列表
        /// </summary>
        /// <returns></returns>
        public IActionResult BomList()
        {
            return View();
        }

        /// <summary>
        /// BOM查看
        /// </summary>
        /// <param name="id">BOM ID</param>
        /// <returns></returns>
        public IActionResult BomView(int? id)
        {
            if (id.HasValue)
            {
                ViewBag.BomId = id.Value;
            }
            return View();
        }

        /// <summary>
        /// BOM编辑
        /// </summary>
        /// <param name="id">BOM ID</param>
        /// <returns></returns>
        public IActionResult BomEdit(int? id)
        {
            if (id.HasValue)
            {
                ViewBag.BomId = id.Value;
            }
            return View();
        }
    }
}
